﻿using System.Collections;
using RAP.Framework.Libary.Utils;

namespace RAP.Framework.Libary.DomTemplateBuilder.Handler.ArrayListActions
{
	/// <summary>
	/// 移除字典项的Handler
	/// </summary>
	public class RemoveAtActionHandler : ArrayListElementHandler
    {
        public override void DoAction ( IList list, object data )
        {
			var index = data.ToString ( ).Trim ( ).ToInt32Value ( );
            list.RemoveAt ( index );
        }
    }
}
